<?php
header('Access-Control-Allow-Origin:*'); 
$url = $_POST["url"];
include "jssdk.php";
$jssdk = new JSSDK("wxeb31508256b4ce1a", "be8d49ed8ad2a409cf5a8c0875b460a1",$url);//因为使用jssdk的url必须要指定，所以这里就把使用的html文件地址传了进来
$signPackage = $jssdk -> GetSignPackage();
//echo $signPackage;
//var_dump($signPackage);
echo json_encode($signPackage);
//echo $tem;
?>